import { defineStore } from 'pinia'

export const useSumStore = defineStore('count', {
  state: () => {
    return {
      sum: 0,
      school:'atguigu',
    }
  },
  getters: {
    upperSchool() {
      return this.school.toUpperCase()
    },
    bigSum:(state):number => state.sum *10,
  },
  actions: {
    increment(value: number) {
      this.sum+=value
    }
  },
  persist: true
})